package com.mate.cloud.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mate.cloud.auth.entity.MateUser;
import com.mate.cloud.auth.entity.UmsUser;
import com.mate.cloud.auth.mapper.UserMapper;
import com.mate.cloud.auth.service.UserService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
 * @description:    java类作用描述
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2025/2/3 16:58
 * @updateUser:     MI
 * @updateTime:     2025/2/3 16:58
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UmsUser> implements UserService {

    @Override
    public UmsUser selectByUsername(String userName) {
        LambdaQueryWrapper<UmsUser> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(UmsUser::getUserName,userName);
        return this.getOne(lambdaQueryWrapper);
    }
}
